<h1>Book Details</h1>

<div class="details">
  <dl>
    <dt>Title:</dt><dd><%=h @book.title %></dd>
    <dt>ISBN:</dt><dd><%=h @book.isbn %></dd>
    <dt>Condition:</dt><dd><%=h @condition.title%></dd>
    <dt>Owner:</dt><dd><%=h @user.name%></dd>
  </dl>
  <div>
    Tags<br />
    <% tag_cloud @tags, %w(css1 css2 css3 css4) do |tag, css_class| %>
      <%= link_to tag.name, { :action => :tag, :id => tag.name }, :class => css_class %>
    <% end %>
  </div>
  <div>
    <%if user_owns_record? %>
    <%= link_to "Edit", :controller => "book", :action => "edit", :id => @book.id %>
    <% end %>
  </div>
  <div>
    <% if logged_in? %>
    <%= link_to "Make an Offer", :controller => "offer", :action => "new", :id => @book.id %>
    <% end %>
  </div>
</div>
